package com.tl.boot.entity.user.form;

import com.tl.boot.common.enums.ResultEnum;
import com.tl.boot.common.exception.BaseException;
import com.tl.boot.entity.demo.form.Base.BaseForm;
import io.swagger.annotations.ApiModelProperty;

/**
 * com.tl.boot.entity.user.form -- DelUserForm
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/17 8:50
 */
public class DelUserForm extends BaseForm {
    @ApiModelProperty( value = "要被删除的用户的id", name = "id", example = "1" )
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public void checkParam() {
        if (this.id == null) {
            throw new BaseException(ResultEnum.REQUEST_PARAM_ILLEGAL);
        }
    }
}
